package com.lunhui.user.client;

import com.lunhui.user.client.model.UserDto;

/**
 * @author renminghe-kg
 */
public interface UserClient {

    Integer saveToDB (String account, String password) throws RuntimeException;

    UserDto findByAccount (String account) throws RuntimeException;

    UserDto findByAccountAndPassword (String account, String password) throws RuntimeException;

    Integer updateUserInfo(UserDto userDto) throws RuntimeException;
}